package com.verisette.ncos.persistence.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;

public class CustomMasterUserProfileId implements Serializable {
	
	private static final long serialVersionUID = 5904522939136253818L;

	@Id
	@Column(name="USP_ID")
	private Integer uspId;

	@Id
	@Column(name="USG_ID")
	private Integer usgId;

	@Id
	@Column(name="UGP_ID")
	private Integer ugpId;
	
	public Integer getUsgId() {
		return usgId;
	}

	public void setUsgId(Integer usgId) {
		this.usgId = usgId;
	}

	public Integer getUspId() {
		return uspId;
	}

	public void setUspId(Integer uspId) {
		this.uspId = uspId;
	}

	public Integer getUgpId() {
		return ugpId;
	}

	public void setUgpId(Integer ugpId) {
		this.ugpId = ugpId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((usgId == null) ? 0 : usgId.hashCode());
		result = prime * result + uspId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CustomMasterUserProfileId other = (CustomMasterUserProfileId) obj;
		if (usgId == null) {
			if (other.usgId != null)
				return false;
		} else if (!usgId.equals(other.usgId))
			return false;
		if (uspId != other.uspId)
			return false;
		return true;
	}
	
	
}
